package br.com.amadeus.android.graphics;

import br.com.amadeus.android.activities.home.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class FormLinear extends Activity
{
	private Intent intent;
	private EditText in;
	private Button b; 
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_linear);
		
		in = (EditText) findViewById(R.id.edtIn);
		b = (Button)findViewById(R.id.btEnviar);
		
		intent = new Intent(this, Linear.class);
		
		b.setOnClickListener(new View.OnClickListener() 
		{
			public void onClick(View arg0) 
			{
				intent.putExtra("msg", in.getText().toString());
				startActivity(intent);
			}
		});
	}
}
